// 网关对应的模块常量
export const ApiModulesRoutes = {
  BASE: '/base',
  USER: '/user',
  EXTERNAL: '/external',
  MESSAGE: '/message',
  IOT: '/iot'
}




export const AccessUrl = {
  manageUrl:  process.env.VUE_APP_MANAGE_URL.replace(process.env.VUE_APP_PATH, window.location.hostname) ,
  frontUrl: process.env.VUE_APP_FRONT_URL.replace(process.env.VUE_APP_PATH, window.location.hostname) ,
  indexUrl: process.env.VUE_APP_INDEX_URL.replace(process.env.VUE_APP_PATH, window.location.hostname),
}



export const BUSSINESS_PLATFORM = {
  FRONT: 'FRONT',
  MANAGE: 'MANEGE',
}

// 请求对应的状态码
export const ApiCode = {
  SUCCESS: 200
}

export const requestSourceEnum = 'MANEGE'

/**
 * 数据状态
 * @type {{STOP: string, CANCEL: string, NORMAL: string}}
 */
export const DataStatusEnum = {
  // 启用
  NORMAL: 'NORMAL',
  // 停用
  STOP: 'STOP',
  // 删除 (一般情况下不可能用到)
  CANCEL: 'CANCEL'
}

// 用于自适应
export const BASE_SCREEN_WIDTH = 1920
export const BASE_SCREEN_HEIGHT = 1080

export const ApiUrl = {
  TEST_URL: 'http://szls.chiefdata.net/test',
  PROD_URL: '',
  MQTT_URL: 'ws://47.107.60.73:8083/mqtt'
}

export const MenuTypeEnum = {
  // PC前台
  FRONT: 'FRONT',
  // PC后台
  MANEGE: 'MANEGE',
  // 移动端
  MOBILE: 'MOBILE'
}

// 排班管理枚举值
export const BusinessTypeEnum = {
  // 默认
  DEFAULT: 'DEFAULT',
  DEVICE: 'DEVICE',
  REGION: 'REGION',
  SECURITY: 'SECURITY',
  TRAIL: 'TRAIL',
  USER: 'USER'
}

export default {
  MenuTypeEnum,
  DataStatusEnum,
  ApiModulesRoutes,
  ApiCode,
  ApiUrl,
  AccessUrl,
  BUSSINESS_PLATFORM
}
